<?php
/**
 * Description
 *
 * PHP version 7
 *
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-28 23:46:35
 * @lastTime 2020-05-01 23:10:28
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */
namespace Design\Behavioral\Observer;

class UserObserver implements \SplObserver
{

    private $changedUsers = [];


    public function update(\SplSubject $subject)
    {
        $this->changedUsers[] = clone $subject;

    }//end update()


    public function getChangedUsers() : array
    {
        return $this->changedUsers;

    }//end getChangedUsers()


}//end class
